package com.alex.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.lang.Nullable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PersonAnnotation {
    private String name;
    private Integer age;
    private Integer gender;

    @Autowired(required = false)
    @Nullable
    @Qualifier(value = "car")
    private Car car;

    @Autowired
    private Dog dog;
}

